<div id="product-list">
  <h1>查询结果</h1>

  <table cellpadding="5" cellspacing="0">
    <tr><td>名称</td><td>频段</td><td>样品单价RMB</td><td>100台单价RMB</td><td>500台单价RMB</td><td>说明（关键特性）</td><td>操作</td></tr>
  <% for product in @products %>
    <tr valign="top" class="<%= cycle('list-line-odd', 'list-line-even') %>">
      <td width="10%">
        <span class="list-title"><%= h(product.prod) %></span><br />
        </td>   
      <td width="18%">
        <span class="list-title"><%= h(product.band) %></span><br />
      </td>
      <td width="10%">
        <span class="list-title"><%= product.cost1  %></span><br />
      </td>      
      <td width="10%">
        <span class="list-title"><%= product.cost100 %></span><br />
      </td>      
      <td width="10%">
        <span class="list-title"><%= product.cost500 %></span><br />
      </td>
     <td width="35%">
        <span class="list-title"><%= h(product.remark) %></span><br />
        <%= h(truncate(product.remark, 120)) %>
      </td> 
            
      <td class="list-actions">
        <%= link_to 'Show', :action => 'show', :id => product %><br/>
        <%= link_to 'Edit', :action => 'edit', :id => product %><br/>
        <%= link_to 'Destroy', { :action  => 'destroy', :id => product },
                                 :confirm => "Are you sure?",
                                 :method  => :post %>
      </td>
    </tr>
  <% end %>
  </table>
</div>


